/**
 * Created by zeng on 2018/7/17.
 */
/*var dd=new Object();
 dd.name="高科技蛋壳";
 dd.addreess="更多";
 dd.showName=function () {
 alert(dd.name);
 }
 dd.showName();*/
/*var dd={
 name:"高科技蛋壳",
 addreess:"更多",
 showName:function () {
 alert(dd.addreess);
 }
 }
 dd.showName();*/

function ManFlower(name,address) {
    this.name=name;
    this,address=address;
    this.showName=function () {
        alert(dd.name)
    }
}
var dd=new ManFlower("男人花","时间地点")
//dd.showName();
alert(dd.constructor==ManFlower);
alert(dd instanceof ManFlower);
alert(dd instanceof Object);


sn.showName();
as.showName();
alert(sn.showName == as.showName);


function ManFlower() {

}
ManFlower.prototype.name="男人花";
ManFlower.prototype.address="代表机构";
ManFlower.prototype.phone="110-120-119";
ManFlower.prototype.showName=function () {
    alert(this.name)
}
var sn=new ManFlower();
var as=new ManFlower();
sn.name="反对和客户";
document.getElementById("gg").innerHTML="姓名: "+sn.name+"原住址： "+sn.address;